canvas = document.body.appendChild(document.createElement('canvas'));
context = canvas.getContext('2d');
time = 60;
w = canvas.width = innerWidth;
h = canvas.height = innerHeight;
cos = Math.cos;
sin = Math.sin;
tan = Math.tan;
PI = Math.PI;

setInterval(function() {
    canvas.width = canvas.width;
    time += 0.0001;
    i = 5775;
    while (i--) {
        r = (w + h) / 2 * (sin((time + i) * (.05 + (tan(time / 1) / PI * .2))) / PI);
        context.fillRect(cos(i) * r + w / 2, tan(i) * r + h / 2, 1.5, 1.5);
    }
},
16);